﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200066B RID: 1643
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetChallengeGroupStatisticsScRsp : IMessage<GetChallengeGroupStatisticsScRsp>, IMessage, IEquatable<GetChallengeGroupStatisticsScRsp>, IDeepCloneable<GetChallengeGroupStatisticsScRsp>, IBufferMessage
	{
		// Token: 0x17001543 RID: 5443
		// (get) Token: 0x06004A35 RID: 18997 RVA: 0x000CC20E File Offset: 0x000CA40E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetChallengeGroupStatisticsScRsp> Parser
		{
			get
			{
				return GetChallengeGroupStatisticsScRsp._parser;
			}
		}

		// Token: 0x17001544 RID: 5444
		// (get) Token: 0x06004A36 RID: 18998 RVA: 0x000CC215 File Offset: 0x000CA415
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetChallengeGroupStatisticsScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001545 RID: 5445
		// (get) Token: 0x06004A37 RID: 18999 RVA: 0x000CC227 File Offset: 0x000CA427
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetChallengeGroupStatisticsScRsp.Descriptor;
			}
		}

		// Token: 0x06004A38 RID: 19000 RVA: 0x000CC22E File Offset: 0x000CA42E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeGroupStatisticsScRsp()
		{
		}

		// Token: 0x06004A39 RID: 19001 RVA: 0x000CC238 File Offset: 0x000CA438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeGroupStatisticsScRsp(GetChallengeGroupStatisticsScRsp other) : this()
		{
			this.groupId_ = other.groupId_;
			this.retcode_ = other.retcode_;
			switch (other.ChallengeCase)
			{
			case GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault:
				this.ChallengeDefault = other.ChallengeDefault.Clone();
				break;
			case GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory:
				this.ChallengeStory = other.ChallengeStory.Clone();
				break;
			case GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss:
				this.ChallengeBoss = other.ChallengeBoss.Clone();
				break;
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004A3A RID: 19002 RVA: 0x000CC2D0 File Offset: 0x000CA4D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeGroupStatisticsScRsp Clone()
		{
			return new GetChallengeGroupStatisticsScRsp(this);
		}

		// Token: 0x17001546 RID: 5446
		// (get) Token: 0x06004A3B RID: 19003 RVA: 0x000CC2D8 File Offset: 0x000CA4D8
		// (set) Token: 0x06004A3C RID: 19004 RVA: 0x000CC2E0 File Offset: 0x000CA4E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17001547 RID: 5447
		// (get) Token: 0x06004A3D RID: 19005 RVA: 0x000CC2E9 File Offset: 0x000CA4E9
		// (set) Token: 0x06004A3E RID: 19006 RVA: 0x000CC2F1 File Offset: 0x000CA4F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001548 RID: 5448
		// (get) Token: 0x06004A3F RID: 19007 RVA: 0x000CC2FA File Offset: 0x000CA4FA
		// (set) Token: 0x06004A40 RID: 19008 RVA: 0x000CC312 File Offset: 0x000CA512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStatistics ChallengeDefault
		{
			get
			{
				if (this.challengeCase_ != GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault)
				{
					return null;
				}
				return (ChallengeStatistics)this.challenge_;
			}
			set
			{
				this.challenge_ = value;
				this.challengeCase_ = ((value == null) ? GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.None : GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault);
			}
		}

		// Token: 0x17001549 RID: 5449
		// (get) Token: 0x06004A41 RID: 19009 RVA: 0x000CC328 File Offset: 0x000CA528
		// (set) Token: 0x06004A42 RID: 19010 RVA: 0x000CC340 File Offset: 0x000CA540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStatistics ChallengeStory
		{
			get
			{
				if (this.challengeCase_ != GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory)
				{
					return null;
				}
				return (ChallengeStoryStatistics)this.challenge_;
			}
			set
			{
				this.challenge_ = value;
				this.challengeCase_ = ((value == null) ? GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.None : GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory);
			}
		}

		// Token: 0x1700154A RID: 5450
		// (get) Token: 0x06004A43 RID: 19011 RVA: 0x000CC356 File Offset: 0x000CA556
		// (set) Token: 0x06004A44 RID: 19012 RVA: 0x000CC36E File Offset: 0x000CA56E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossStatistics ChallengeBoss
		{
			get
			{
				if (this.challengeCase_ != GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss)
				{
					return null;
				}
				return (ChallengeBossStatistics)this.challenge_;
			}
			set
			{
				this.challenge_ = value;
				this.challengeCase_ = ((value == null) ? GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.None : GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss);
			}
		}

		// Token: 0x1700154B RID: 5451
		// (get) Token: 0x06004A45 RID: 19013 RVA: 0x000CC384 File Offset: 0x000CA584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeGroupStatisticsScRsp.ChallengeOneofCase ChallengeCase
		{
			get
			{
				return this.challengeCase_;
			}
		}

		// Token: 0x06004A46 RID: 19014 RVA: 0x000CC38C File Offset: 0x000CA58C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearChallenge()
		{
			this.challengeCase_ = GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.None;
			this.challenge_ = null;
		}

		// Token: 0x06004A47 RID: 19015 RVA: 0x000CC39C File Offset: 0x000CA59C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetChallengeGroupStatisticsScRsp);
		}

		// Token: 0x06004A48 RID: 19016 RVA: 0x000CC3AC File Offset: 0x000CA5AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetChallengeGroupStatisticsScRsp other)
		{
			return other != null && (other == this || (this.GroupId == other.GroupId && this.Retcode == other.Retcode && object.Equals(this.ChallengeDefault, other.ChallengeDefault) && object.Equals(this.ChallengeStory, other.ChallengeStory) && object.Equals(this.ChallengeBoss, other.ChallengeBoss) && this.ChallengeCase == other.ChallengeCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004A49 RID: 19017 RVA: 0x000CC444 File Offset: 0x000CA644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault)
			{
				num ^= this.ChallengeDefault.GetHashCode();
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory)
			{
				num ^= this.ChallengeStory.GetHashCode();
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss)
			{
				num ^= this.ChallengeBoss.GetHashCode();
			}
			num ^= (int)this.challengeCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004A4A RID: 19018 RVA: 0x000CC4EA File Offset: 0x000CA6EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004A4B RID: 19019 RVA: 0x000CC4F2 File Offset: 0x000CA6F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004A4C RID: 19020 RVA: 0x000CC4FC File Offset: 0x000CA6FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.ChallengeDefault);
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.ChallengeStory);
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.ChallengeBoss);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004A4D RID: 19021 RVA: 0x000CC5AC File Offset: 0x000CA7AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ChallengeDefault);
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ChallengeStory);
			}
			if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ChallengeBoss);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004A4E RID: 19022 RVA: 0x000CC650 File Offset: 0x000CA850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetChallengeGroupStatisticsScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			switch (other.ChallengeCase)
			{
			case GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault:
				if (this.ChallengeDefault == null)
				{
					this.ChallengeDefault = new ChallengeStatistics();
				}
				this.ChallengeDefault.MergeFrom(other.ChallengeDefault);
				break;
			case GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory:
				if (this.ChallengeStory == null)
				{
					this.ChallengeStory = new ChallengeStoryStatistics();
				}
				this.ChallengeStory.MergeFrom(other.ChallengeStory);
				break;
			case GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss:
				if (this.ChallengeBoss == null)
				{
					this.ChallengeBoss = new ChallengeBossStatistics();
				}
				this.ChallengeBoss.MergeFrom(other.ChallengeBoss);
				break;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004A4F RID: 19023 RVA: 0x000CC735 File Offset: 0x000CA935
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004A50 RID: 19024 RVA: 0x000CC740 File Offset: 0x000CA940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 42U)
				{
					if (num == 18U)
					{
						ChallengeStatistics challengeStatistics = new ChallengeStatistics();
						if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeDefault)
						{
							challengeStatistics.MergeFrom(this.ChallengeDefault);
						}
						input.ReadMessage(challengeStatistics);
						this.ChallengeDefault = challengeStatistics;
						continue;
					}
					if (num == 42U)
					{
						ChallengeStoryStatistics challengeStoryStatistics = new ChallengeStoryStatistics();
						if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeStory)
						{
							challengeStoryStatistics.MergeFrom(this.ChallengeStory);
						}
						input.ReadMessage(challengeStoryStatistics);
						this.ChallengeStory = challengeStoryStatistics;
						continue;
					}
				}
				else
				{
					if (num == 50U)
					{
						ChallengeBossStatistics challengeBossStatistics = new ChallengeBossStatistics();
						if (this.challengeCase_ == GetChallengeGroupStatisticsScRsp.ChallengeOneofCase.ChallengeBoss)
						{
							challengeBossStatistics.MergeFrom(this.ChallengeBoss);
						}
						input.ReadMessage(challengeBossStatistics);
						this.ChallengeBoss = challengeBossStatistics;
						continue;
					}
					if (num == 56U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001D80 RID: 7552
		private static readonly MessageParser<GetChallengeGroupStatisticsScRsp> _parser = new MessageParser<GetChallengeGroupStatisticsScRsp>(() => new GetChallengeGroupStatisticsScRsp());

		// Token: 0x04001D81 RID: 7553
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001D82 RID: 7554
		public const int GroupIdFieldNumber = 15;

		// Token: 0x04001D83 RID: 7555
		private uint groupId_;

		// Token: 0x04001D84 RID: 7556
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04001D85 RID: 7557
		private uint retcode_;

		// Token: 0x04001D86 RID: 7558
		public const int ChallengeDefaultFieldNumber = 2;

		// Token: 0x04001D87 RID: 7559
		public const int ChallengeStoryFieldNumber = 5;

		// Token: 0x04001D88 RID: 7560
		public const int ChallengeBossFieldNumber = 6;

		// Token: 0x04001D89 RID: 7561
		private object challenge_;

		// Token: 0x04001D8A RID: 7562
		private GetChallengeGroupStatisticsScRsp.ChallengeOneofCase challengeCase_;

		// Token: 0x02001833 RID: 6195
		public enum ChallengeOneofCase
		{
			// Token: 0x04006304 RID: 25348
			None,
			// Token: 0x04006305 RID: 25349
			ChallengeDefault = 2,
			// Token: 0x04006306 RID: 25350
			ChallengeStory = 5,
			// Token: 0x04006307 RID: 25351
			ChallengeBoss
		}
	}
}
